#ifndef _ADR_STRINGLENGTHATTRIBUTE_H_
#define _ADR_STRINGLENGTHATTRIBUTE_H_

#include "adr/Metadata/ValidationAttribute.h"

#include <string>

namespace adr {
	using namespace std;

	class StringLengthAttribute : public ValidationAttribute {
	private:
		const int minLength;
		const int maxLength;
	public:
		StringLengthAttribute(int maxLength, int minLength = 0);
		bool Validate(BaseProperty& prop) override;
	};
}

#endif